Latest Questions

My React Native app is lagging in the light mode, but is superfast in the dark

I am creating a React Native app with light and dark modes. The colors of all components in the app are controlled with my custom hook: export const useColors =

What is the best way to generate all possible three letter strings?

I am generating all possible three letters keywords e.g. aaa, aab, aac.... zzy, zzz below is my code: alphabets = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i',

ScriptUI - Integer number in slider percentage

I have a script that shows a dialog window with a slider bar, next to a static text. The text shows the percentage of the slider bar (0 to 100). The problem is

sorry - old question again: imagecropauto() not working

I have some simple code: $original_image = imagecreatefromjpeg($image_path); $cropped_image =imagecropauto($original_image , IMG_CROP_THRESHOLD, .5, 16777215);

Not able to use rasa x with current version of rasa

Rasa forum says that rasa x 1.1 supports rasa 3.x, but when i try running rasa x on a model trained with rasa 3.1 it gives me error. UserWarning: Your version o

Powershell: Pass result of Get-AzTableRow to function

I am using below PowerShell code in azure functions to retrieve rows of users in azure table who belongs to a particular location. $Rows = Get-AzTableRow -table

Azure DevOps trigger at pipeline completion using different branch than expected

In the workflow of a pipeline triggering another pipeline according to this doc, I'm trying to set: feature-branch PR to develop-branch triggers stage-ci stage-

How to add pooled standard error in tbl_summary() and eta effect size?

I am trying to include Pooled Standard Error (PSE) and Eta square to tbl_summary(). PSE is calculated by sqrt(mean(residuals^2)/n), I tried to calculate step by

Unable to connect from Google Cloud to Bitbucket repository using app password

I'm using GCP build triggers connected to Bitbucket repositories. The connection is made using user credentials. Bitbucket has announced they're ending support

Select max value from table by category

Bought X times Name Manufacturer 19 Олівець Faber-Castell, Castell 9000 F FaberCastell 14 Наб&#

display all blocked and pending signals at one time

The following program checks if a signal is pending. I use the sigpending function to return blocked (or waiting) signals. The problem is that I don't want this

Using Shopify JS Buy SDK, unable to remove variant item from cart

I have a button to remove an item from the cart on my cart page, but I'm receiving this error: Variable $lineItemIds of type [ID!]! was provided invalid value.

Getting "Cannot use dynamic template data with a legacy template" with non-legacy template

I'm attempting to integrate with Sendgrid and am having a heck of a time. I have created a dynamic template - a new one, not a legacy one - with a single handl

Sequential storage structure of linear tables and their basic operations with C

I'm new to C, and in order to practice I found a task on the Internet: Write C code that has functions that can: (1) Create a linear table; (2) Input data elem

Padding issue for xAxis in recharts

As i was working on recharts, i was trying to achieve below Below is my code: <ResponsiveContainer width="100%" height={400} className="area-chart">

Always tkinter Text highlight_patern not working [closed]

I've used this question but can't seem to do it again later. I call it with root.after later but then it does nothing. my code is: class Custo

Font Awesome don't work on external website on chrome

Like a lot of people I am using internet, and i noticed a lot of website if was using suddenly had character change into something i didn't recognized. After di

Handwriting detection with keras : using a `tf.Tensor` as a Python `bool` is not allowed in Graph execution

I've tried to run a code example (hosted on keras.io) regarding the handwriting recognition task. While playing with the code, I faced a TensorFlow-related issu

How to authenticate with Blockfrost.io API?

So I'm trying to import Cardano Blockchain data like address balance, amount staked, rewards etc into a Google Sheet. I found this project named Blockfrost.io w

Openpgp Encrypt with PGP

I am trying to encrypt a message using PGP but I am getting an error that states: ReferenceError: TextDecoder is not defined at Object.decodeUTF8 (node_m

Factory Method Design Pattern in Python

I'm studying Factory Method Design Pattern in Python. I understand the point of using it in principle but still some aspects got me confused when I experiment w

Helm globally controlling values of dependencies from requirements

We have a set of Micro-Services (MS-a, MS-b, MS-c..) each has its own dependencies specified in requirements.yaml. Some have the same requirements, e.g mongodb.

How can i fix Error: Cannot find module. Using sequelize, express, node and mysql

Can some one help me? Node v16.15.0 "body-parser": "^1.20.0", "express": "^4.18.1", "mysql2": "^2.3.3", "path": "^0.12.7", "sequelize": "^6.19.0", "sequelize-cl

Returning file name with Left(file.Name, InStrRev(file.Name, ".") - 1) generates error number 5

I get error number 5 in (ActiveSheet.Cells(Rows.Count, 3).End(xlUp).Offset(1, 0) = Left(file.Name, InStrRev(file.Name, ".") - 1) The purpose of this code is

How i can fix this Warning: validateDOMNesting(...): <h5> cannot appear as a descendant of <p>

react-dom.development.js:86 Warning: validateDOMNesting(...): cannot appear as a descendant of Hello, everyone. In my react page i have blogs component. when

Can I create links with 'target="_blank"' in hugo posts content using Markdown?

I use Hugo to deploy static web, using Markdown and the problem I would like to sort out is simple. I would like to find the simplest and compatible with Markdo

NextJS fetching nested array of objects from MongoDB using mongoose and getServerSideProps

I'm trying to fetch an array of objects from MongoDB, using mongoose and SSP. One hitch is that all ObjectIds must be converted into strings. Currently I'm doin

Rails Active Storage: How to create "named variants" that are cropped by user-supplied coordinates

I have something like: class User < ApplicationRecord has_one_attached :avatar do |attachable| attachable.variant :large, resize_to_limit: [300, nil]

Hardhat: ProviderError: The execution failed due to an exception

I'm deploying contracts with hardhat, but cannot use address type in contracts ProviderError: The execution failed due to an exception. at HttpProvider.requ

NestJS WebSocket

I use angular in the front end where I am learning to use rxjs-websockets. In backend I use nestjs, where i want to learn to use websockets. But every tutorial